define(function() {
    var docuH = document.documentElement.clientHeight,
        docuW = document.documentElement.clientWidth,
        html = document.getElementsByTagName('html')[0];
    var base = 160;
    var num = docuW / base;
    var scale = 1 / window.devicePixelRatio;
    document.getElementById('viewport')
        .setAttribute('content', 'width=device-width, initial-scale=' + scale + ', maximum-scale=' + scale + ', minimum-scale=' + scale + ', user-scalable=0');
    html.style.fontSize = window.devicePixelRatio * 10 * num + "px";
    document.getElementsByTagName('body')[0].className = 'show';
    window.onresize = function(eve) {
        docuW = document.documentElement.clientWidth * scale;
        num = docuW / base;
        html.style.fontSize = window.devicePixelRatio * 10 * num + "px";
    };
});
